#ifndef DIALOGLOGIN_H
#define DIALOGLOGIN_H

#include <QDialog>
#include <commontype.h>

namespace Ui {
class DialogLogin;
}

class DialogLogin : public QDialog
{
    Q_OBJECT

public:
    explicit DialogLogin(QWidget *parent = nullptr);
    ~DialogLogin();

signals:
    void submitUserLoginInfo(StuData studata);
    void submitUserRegisterInfo(StuData studata);

private slots:
    void on_radioButton_admin_clicked();

    void on_radioButton_user_clicked();

    void on_pushButton_register_clicked();

    void on_pushButton_login_clicked();

private:
    Ui::DialogLogin *ui;
    int submitType_;
    StuData stuData_;
};

#endif // DIALOGLOGIN_H
